/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hk.sys.entity.user;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 用户产品Entity
 * @author 罗天文
 * @version 2018-08-30
 */
public class HkUserProductSku extends DataEntity<HkUserProductSku> {
	
	private static final long serialVersionUID = 1L;
	private HkUserProduct product;		// 产品id 父类
	private String model;		// 型号
	private String price;		// 价格
	private String num;		// 库存
	
	public HkUserProductSku() {
		super();
	}

	public HkUserProductSku(String id){
		super(id);
	}

	public HkUserProductSku(HkUserProduct product){
		this.product = product;
	}

	@Length(min=0, max=32, message="产品id长度必须介于 0 和 32 之间")
	public HkUserProduct getProduct() {
		return product;
	}

	public void setProduct(HkUserProduct product) {
		this.product = product;
	}
	
	@Length(min=0, max=200, message="型号长度必须介于 0 和 200 之间")
	public String getModel() {
		return model;
	}

	public void setModel(String model) {
		this.model = model;
	}
	
	public String getPrice() {
		return price;
	}

	public void setPrice(String price) {
		this.price = price;
	}
	
	@Length(min=0, max=11, message="库存长度必须介于 0 和 11 之间")
	public String getNum() {
		return num;
	}

	public void setNum(String num) {
		this.num = num;
	}
	
}